package ui;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;

public class Window {
	
	// Singleton-Pattern.
	private static Window instance;
	
	public static Window getInstance() {
		if ( instance == null )
			instance = new Window();
		
		return instance;
	}
	
	// Klassenattribute.
	private JFrame frame;
	private MainPanel mp;
	
	// Konstruktor.
	private Window() {
		frame = new JFrame("PIM PW");
		frame.setLayout(new BorderLayout());
		frame.setSize(new Dimension(800, 550));
		
		// MainPanel.
		mp = new MainPanel();
		
		frame.add(mp, BorderLayout.CENTER);
		
		frame.setVisible(true);
	}
}
